﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _018传值_输出_引用_数组_具名_可选参数_3_
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Student stu = new Student() { Name ="People"};
            UpdateObject(stu);
            Console.WriteLine("HashCode={0},Name={1}",stu.GetHashCode(),stu.Name);
        }

        static void UpdateObject(Student stu) {
            stu.Name = "Cheche";
            Console.WriteLine("HashCode={0},Name={1}",stu.GetHashCode(),stu.Name);
        }
    }

    class Student
    {
        public string  Name { get; set; }
    }
}
